package com.tgy.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tgy.pojo.BlogArticle;
import com.tgy.vo.StatisticsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 文章表;(blog_article)表数据库访问层
 * @author : http://www.chiner.pro
 * @date : 2022-6-30
 */
@Mapper
public interface BlogArticleMapper  extends BaseMapper<BlogArticle>{

     int updateStatus(@Param("id") String id, @Param("status") Integer status);

    int addWatchNumber(@Param("id") String id);

    int addCommentNumber(@Param("id") String id);

    StatisticsVo getStatisticsNumber();
}